package pros;

import java.util.Properties;

public class propties {

    public static Properties properties1(){



        Properties props = new Properties();
        props.put("bootstrap.servers", "192.168.0.14:9092,192.168.0.15:9092");//172.16.2.112,172.16.2.113
        props.put("group.id", "test");
        props.put("enable.auto.commit", "false");
        props.put("session.timeout.ms", "30000");//新添加的测试
        props.put("max.poll.records", 100); //每次poll最多获取100条数据 新添加的测试

        props.put("key.deserializer", "org.apache.kafka.common.serialization.StringDeserializer");
        props.put("value.deserializer", "org.apache.kafka.common.serialization.StringDeserializer");


        return props;

    }
}
